#!/usr/bin/env node

const fs = require('fs');
const log = console.log;
let w= fs.watch(__dirname,(evt,file)=>{
  console.log(`${file}:${evt}`);
})
process.on('SIGINT',()=>{
 
  w.close();
  log('Game over after 5 second...');
  setTimeout(()=>{
    process.exit();
  },5000);
});
//const src = process.argv[2];
//fs.watch(src,(evt,file)=>{
  //console.log(`${file}:${evt}`);

//});
